/*! @sentry/browser 4.4.2 (128da98b) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o,i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(){for(var t=[],e=0;e"}return t.event_id||""}function w(t){var e=b();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}function k(t){return JSON.stringify(t)}function O(t,e,n){if(e in t&&!t[e].__sentry__){var r=t[e],o=n(r);o.__sentry__=!0,o.__sentry_original__=r,o.__sentry_wrapped__=o,t[e]=o}}(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(o=t.Status||(t.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));var j=3,T=102400,I=40;function R(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function F(t){if("string"==typeof t)return t.length<=40?t:t.substr(0,39)+"…";if("number"==typeof t||"boolean"==typeof t||void 0===t)return t;if(m(t))return"[NaN]";if(d(t))return"[undefined]";var e=Object.prototype.toString.call(t);if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";if("[object Function]"===e){var n=t.name;return n?"[Function: "+n+"]":"[Function]"}return t}function C(t,e){if(0===e)return F(t);if(y(t)){var n={},r=t;return Object.keys(r).forEach(function(t){n[t]=C(r[t],e-1)}),n}return Array.isArray(t)?t.map(function(t){return C(t,e-1)}):F(t)}function D(t){for(var e=[],n=1;n"):t}function M(){var t=[],e=[];return function(n,r){if(t.length>0){var o=t.indexOf(this);-1===o?(t.push(this),e.push(n)):(t.splice(o+1),e.splice(o,1/0,n)),-1!==t.indexOf(r)&&(r=function(n,r){return t[0]===r?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(r)).join(".")+"]"}.call(this,n,r))}else t.push(r);return N(r,n)}}function U(t){try{return JSON.parse(JSON.stringify(t,M()))}catch(t){return"**non-serializable**"}}var L=function(){function t(){this.notifyingListeners=!1,this.scopeListeners=[],this.eventProcessors=[],this.breadcrumbs=[],this.user={},this.tags={},this.extra={}}return t.prototype.addScopeListener=function(t){this.scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this.eventProcessors.push(t),this},t.prototype.notifyScopeListeners=function(){var t=this;this.notifyingListeners||(this.notifyingListeners=!0,setTimeout(function(){t.scopeListeners.forEach(function(e){e(t)}),t.notifyingListeners=!1},0))},t.prototype.notifyEventProcessors=function(t,e){return a(this,void 0,void 0,function(){var n,r,o,a,c,p,f;return s(this,function(s){switch(s.label){case 0:o=t,s.label=1;case 1:s.trys.push([1,8,9,10]),a=u(l(A(),this.eventProcessors)),c=a.next(),s.label=2;case 2:if(c.done)return[3,7];p=c.value,s.label=3;case 3:return s.trys.push([3,5,,6]),[4,p(i({},o),e)];case 4:return null===(o=s.sent())?[2,null]:[3,6];case 5:return s.sent(),[3,6];case 6:return c=a.next(),[3,2];case 7:return[3,10];case 8:return f=s.sent(),n={error:f},[3,10];case 9:try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}return[7];case 10:return[2,o]}})})},t.prototype.setUser=function(t){return this.user=U(t),this.notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this.tags=i({},this.tags,((n={})[t]=U(e),n)),this.notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this.extra=i({},this.extra,((n={})[t]=U(e),n)),this.notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this.fingerprint=U(t),this.notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this.level=U(t),this.notifyScopeListeners(),this},t.clone=function(e){var n=new t;return D(n,e,{scopeListeners:[]}),e&&(n.extra=D(e.extra),n.tags=D(e.tags),n.breadcrumbs=l(e.breadcrumbs),n.eventProcessors=l(e.eventProcessors)),n},t.prototype.clear=function(){this.breadcrumbs=[],this.tags={},this.extra={},this.user={},this.level=void 0,this.fingerprint=void 0,this.notifyScopeListeners()},t.prototype.addBreadcrumb=function(t,e){this.breadcrumbs=void 0!==e&&e>=0?l(this.breadcrumbs,[U(t)]).slice(-e):l(this.breadcrumbs,[U(t)]),this.notifyScopeListeners()},t.prototype.applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.fingerprint?t.fingerprint=t.fingerprint.concat(this.fingerprint):t.message&&(t.fingerprint=t.fingerprint.concat(t.message)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e,n){return a(this,void 0,void 0,function(){return s(this,function(r){return this.extra&&Object.keys(this.extra).length&&(t.extra=i({},this.extra,t.extra)),this.tags&&Object.keys(this.tags).length&&(t.tags=i({},this.tags,t.tags)),this.user&&Object.keys(this.user).length&&(t.user=i({},this.user,t.user)),this.level&&(t.level=this.level),this.applyFingerprint(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.breadcrumbs.length>0&&(t.breadcrumbs=void 0!==n&&n>=0?this.breadcrumbs.slice(-n):this.breadcrumbs),[2,this.notifyEventProcessors(t,e)]})})},t}();function A(){var t=b();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function B(t){A().push(t)}var P=b(),H=new(function(){function t(){this.enabled=!1}return t.prototype.disable=function(){this.enabled=!1},t.prototype.enable=function(){this.enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e0?t[t.length-1].scope:void 0,n=L.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.stack},t.prototype.getStackTop=function(){return this.stack[this.stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=E();return this.invokeClientAsync("captureException",t,i({},e,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=E();return this.invokeClientAsync("captureMessage",t,e,i({},n,{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=E();return this.invokeClientAsync("captureEvent",t,i({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){this.invokeClient("addBreadcrumb",t,i({},e))},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=V(this);try{t(this)}finally{V(e)}},t.prototype.getIntegration=function(t){try{return this.getClient().getIntegration(t)}catch(e){return H.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t}();function W(){var t=b();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function V(t){var e=W(),n=X(e);return z(e,t),n}function G(){var t,e,n=W();Y(n)&&!X(n).isOlderThan($)||z(n,new q);try{var r=(t=module,e="domain",t.require(e)).active;if(!r)return X(n);if(!Y(r)||X(r).isOlderThan($)){var o=X(n).getStackTop();z(r,new q(o.client,L.clone(o.scope)))}return X(r)}catch(t){return X(n)}}function Y(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function X(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__={},t.__SENTRY__.hub=new q,t.__SENTRY__.hub)}function z(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function J(t){for(var e=[],n=1;n1&&(p=h.slice(0,-1).join("/"),f=h.pop()),D(this,{host:s,pass:a,path:p,projectId:f,port:l,protocol:r,user:o})},t.prototype.fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.validate=function(){var t,e;try{for(var n=u(["protocol","user","host","projectId"]),r=n.next();!r.done;r=n.next()){var o=r.value;if(!this[o])throw new Z("Invalid Dsn: Missing "+o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new Z('Invalid Dsn: Unsupported protocol "'+this.protocol+'"');if(this.port&&m(parseInt(this.port,10)))throw new Z('Invalid Dsn: Invalid port number "'+this.port+'"')},t}(),et=function(){function t(t){this.dsn=t,this.dsnObject=new tt(t)}return t.prototype.getDsn=function(){return this.dsnObject},t.prototype.getStoreEndpoint=function(){return""+this.getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t,e={sentry_key:this.dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(t=e,Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"))},t.prototype.getBaseUrl=function(){var t=this.dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n},t.prototype.getStoreEndpointPath=function(){var t=this.dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this.dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_timestamp="+(new Date).getTime()),r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this.dsnObject,n=this.getBaseUrl()+(e.path?"/"+e.path:"")+"/api/embed/error-page/",r=[];for(var o in r.push("dsn="+e.toString()),t)if("user"===o){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));return r.length?n+"?"+r.join("&"):n},t}();function nt(t,e){return void 0===e&&(e=0),0!==e&&g(t)?t.length<=e?t:t.substr(0,e)+"…":t}function rt(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;rt.length)&&-1!==t.indexOf(e)}var it=[];function at(t){var e={};return function(t){var e,n,r,o,i=t.defaultIntegrations&&l(t.defaultIntegrations)||[],a=t.integrations,s=[];if(Array.isArray(a)){var c=a.map(function(t){return t.name}),p=[];try{for(var f=u(i),h=f.next();!h.done;h=f.next()){var d=h.value;-1===c.indexOf(st(d))&&-1===p.indexOf(st(d))&&(s.push(d),p.push(st(d)))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}try{for(var v=u(a),g=v.next();!g.done;g=v.next()){var y=g.value;-1===p.indexOf(st(y))&&(s.push(y),p.push(st(y)))}}catch(t){r={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else{if("function"!=typeof a)return l(i);s=a(i),s=Array.isArray(s)?s:[s]}return s}(t).forEach(function(n){e[st(n)]=n,function(t,e){if(-1===it.indexOf(st(t))){try{t.setupOnce()}catch(n){H.warn("Integration "+st(t)+': The install method is deprecated. Use "setupOnce".'),t.install&&t.install(e)}it.push(st(t)),H.log("Integration installed: "+st(t))}}(n,t)}),e}function st(t){return t.constructor.id||t.name}var ut,ct=function(){function e(t,e){this.backend=new t(e),this.options=e,e.dsn&&(this.dsn=new tt(e.dsn)),this.integrations=at(this.options)}return e.prototype.install=function(){if(!this.isEnabled())return this.installed=!1;var t=this.getBackend();return!this.installed&&t.install&&t.install(),this.installed=!0},e.prototype.buffer=function(t){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,this.getBackend().getBuffer().add(t)]})})},e.prototype.captureException=function(t,e,n){return a(this,void 0,void 0,function(){var r=this;return s(this,function(o){return[2,this.buffer(a(r,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:return[4,this.getBackend().eventFromException(t,e)];case 1:return r=o.sent(),[2,this.captureEvent(r,e,n)]}})}))]})})},e.prototype.captureMessage=function(t,e,n,r){return a(this,void 0,void 0,function(){var o=this;return s(this,function(i){return[2,this.buffer(a(o,void 0,void 0,function(){var o;return s(this,function(i){switch(i.label){case 0:return[4,this.getBackend().eventFromMessage(t,e,n)];case 1:return o=i.sent(),[2,this.captureEvent(o,n,r)]}})}))]})})},e.prototype.captureEvent=function(t,e,n){return a(this,void 0,void 0,function(){var r=this;return s(this,function(o){return[2,this.buffer(a(r,void 0,void 0,function(){var r=this;return s(this,function(o){return[2,this.processEvent(t,function(t){return a(r,void 0,void 0,function(){return s(this,function(e){return[2,this.getBackend().sendEvent(t)]})})},e,n)]})}))]})})},e.prototype.addBreadcrumb=function(t,e,n){var r=this.getOptions(),o=r.beforeBreadcrumb,a=r.maxBreadcrumbs,s=void 0===a?30:a;if(!(s<=0)){var u=(new Date).getTime()/1e3,c=i({timestamp:u},t),l=o?w(function(){return o(c,e)}):c;null!==l&&this.getBackend().storeBreadcrumb(l)&&n&&n.addBreadcrumb(l,Math.min(s,100))}},e.prototype.getDsn=function(){return this.dsn},e.prototype.getOptions=function(){return this.options},e.prototype.getBackend=function(){return this.backend},e.prototype.isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this.dsn},e.prototype.prepareEvent=function(t,e,n){return a(this,void 0,void 0,function(){var r,o,a,u,c,l,p,f,h;return s(this,function(s){return r=this.getOptions(),o=r.environment,a=r.maxBreadcrumbs,u=void 0===a?30:a,c=r.release,l=r.dist,void 0===(p=i({},t)).environment&&void 0!==o&&(p.environment=o),void 0===p.release&&void 0!==c&&(p.release=c),void 0===p.dist&&void 0!==l&&(p.dist=l),p.message&&(p.message=nt(p.message,250)),(f=p.exception&&p.exception.values&&p.exception.values[0])&&f.value&&(f.value=nt(f.value,250)),(h=p.request)&&h.url&&(h.url=nt(h.url,250)),void 0===p.event_id&&(p.event_id=E()),e?[2,e.applyToEvent(p,n,Math.min(u,100))]:[2,p]})})},e.prototype.processEvent=function(e,n,r,o){return a(this,void 0,void 0,function(){var i,a,u,c,l,p,f;return s(this,function(s){switch(s.label){case 0:return this.isEnabled()?(i=this.getOptions(),a=i.beforeSend,"number"==typeof(u=i.sampleRate)&&Math.random()>u?[2,{status:t.Status.Skipped}]:[4,this.prepareEvent(e,o,r)]):[2,{status:t.Status.Skipped}];case 1:if(null===(c=s.sent()))return[2,{status:t.Status.Skipped}];l=c,s.label=2;case 2:return s.trys.push([2,5,,6]),r&&r.data&&!0===r.data.__sentry__||!a?[3,4]:[4,a(c,r)];case 3:void 0===(l=s.sent())&&H.error("`beforeSend` method has to return `null` or a valid event"),s.label=4;case 4:return[3,6];case 5:return p=s.sent(),this.captureException(p,{data:{__sentry__:!0},originalException:p}).catch(function(t){console.error(t)}),[2,{reason:"Event processing in beforeSend method threw an exception",status:t.Status.Invalid}];case 6:return null===l?[2,{reason:"Event dropped due to being discarded by beforeSend method",status:t.Status.Skipped}]:[4,n(l)];case 7:return(f=s.sent()).event=l,f.status,t.Status.RateLimit,[2,f]}})})},e.prototype.close=function(t){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,this.getBackend().getBuffer().drain(t)]})})},e.prototype.getIntegrations=function(){return this.integrations||{}},e.prototype.getIntegration=function(t){try{return this.integrations[t.id]||null}catch(e){return H.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},e}(),lt=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){return a(this,void 0,void 0,function(){var e=this;return s(this,function(n){return-1===this.buffer.indexOf(t)&&this.buffer.push(t),t.then(function(){return a(e,void 0,void 0,function(){return s(this,function(e){return[2,this.remove(t)]})})}).catch(function(){return a(e,void 0,void 0,function(){return s(this,function(e){return[2,this.remove(t)]})})}),[2,t]})})},t.prototype.remove=function(t){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,this.buffer.splice(this.buffer.indexOf(t),1)[0]]})})},t.prototype.length=function(){return this.buffer.length},t.prototype.drain=function(t){return a(this,void 0,void 0,function(){var e=this;return s(this,function(n){return[2,new Promise(function(n){var r=setTimeout(function(){t&&t>0&&n(!1)},t);Promise.all(e.buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},t}(),pt=function(){function t(t){this.buffer=new lt,this.options=t,this.options.dsn||H.warn("No DSN provided, backend will not do anything.")}return t.prototype.eventFromException=function(t,e){return a(this,void 0,void 0,function(){return s(this,function(t){throw new Z("Backend has to implement `eventFromException` method")})})},t.prototype.eventFromMessage=function(t,e,n){return a(this,void 0,void 0,function(){return s(this,function(t){throw new Z("Backend has to implement `eventFromMessage` method")})})},t.prototype.sendEvent=function(t){return a(this,void 0,void 0,function(){return s(this,function(t){throw new Z("Backend has to implement `sendEvent` method")})})},t.prototype.storeBreadcrumb=function(t){return!0},t.prototype.storeScope=function(t){},t.prototype.getBuffer=function(){return this.buffer},t}();!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(ut||(ut={}));var ft,ht=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e=this;B(function(n){return a(e,void 0,void 0,function(){var e;return s(this,function(r){if(e=G().getIntegration(t)){try{if(e.shouldDropEvent(n,e.previousEvent))return[2,null]}catch(t){return[2,e.previousEvent=n]}return[2,e.previousEvent=n]}return[2,n]})})})},t.prototype.shouldDropEvent=function(t,e){return!!e&&(this.isSameMessageEvent(t,e)?(H.warn("Event dropped due to being a duplicate of previous event (same message).\nEvent: "+S(t)),!0):!!this.isSameExceptionEvent(t,e)&&(H.warn("Event dropped due to being a duplicate of previous event (same exception).\nEvent: "+S(t)),!0))},t.prototype.isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this.isSameFingerprint(t,e)&&!!this.isSameStacktrace(t,e))))},t.prototype.getFramesFromEvent=function(t){var e=t.exception;if(!e)return t.stacktrace?t.stacktrace.frames:void 0;try{return e.values[0].stacktrace.frames}catch(t){return}},t.prototype.isSameStacktrace=function(t,e){var n=this.getFramesFromEvent(t),r=this.getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var o=0;o ".length;n&&i++<5&&!("html"===(e=o(n))||i>1&&a+r.length*s+e.length>=80);)r.push(e),a+=e.length,n=n.parentNode;return r.reverse().join(" > ")},e.htmlElementAsString=o,e.parseUrl=function(t){if(!t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}},e.getEventDescription=function(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||""}return t.event_id||""},e.consoleSandbox=function(t){var e=r();if(!("console"in e))return t();var n=e.console,o={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(o[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var i=t();return Object.keys(o).forEach(function(t){n[t]=o[t]}),i}});bt(_t);_t.dynamicRequire,_t.isNodeEnv,_t.getGlobalObject,_t.uuid4,_t.htmlTreeAsString,_t.htmlElementAsString,_t.parseUrl,_t.getEventDescription,_t.consoleSandbox;var St=Et(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=_t.getGlobalObject(),r=new(function(){function t(){this.enabled=!1}return t.prototype.disable=function(){this.enabled=!1},t.prototype.enable=function(){this.enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"),(r?"/":"")+n||"."}function It(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function Rt(t,e){var n,r,o=(n=t,r=jt.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}var Ft=function(){function t(e){void 0===e&&(e={});var n=this;this.name=t.id,this.iteratee=function(t){return a(n,void 0,void 0,function(){var e;return s(this,function(n){return t.filename&&t.filename.startsWith("/")&&(e=this.root?function(t,e){t=Tt(t).substr(1),e=Tt(e).substr(1);for(var n=It(t.split("/")),r=It(e.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a>16)+(e>>16)+(n>>16)<<16|65535&n}function Ut(t,e,n,r,o,i){return Mt((a=Mt(Mt(e,t),Mt(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function Lt(t,e,n,r,o,i,a){return Ut(e&n|~e&r,t,e,o,i,a)}function At(t,e,n,r,o,i,a){return Ut(e&r|n&~r,t,e,o,i,a)}function Bt(t,e,n,r,o,i,a){return Ut(e^n^r,t,e,o,i,a)}function Pt(t,e,n,r,o,i,a){return Ut(n^(e|~r),t,e,o,i,a)}function Ht(t,e){var n,r,o,i,a;t[e>>5]|=128<>>9<<4)]=e;var s=1732584193,u=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>e%32&255);return n}function qt(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e>5]|=(255&t.charCodeAt(e/8))<>>4&15)+"0123456789abcdef".charAt(15&e);return r}function Vt(t){return unescape(encodeURIComponent(t))}function Gt(t){return function(t){return $t(Ht(qt(t),8*t.length))}(Vt(t))}function Yt(t,e){return function(t,e){var n,r,o=qt(t),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=Ht(o,8*t.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=Ht(i.concat(qt(e)),512+8*e.length),$t(Ht(a.concat(r),640))}(Vt(t),Vt(e))}function Xt(t,e,n){return e?n?Yt(e,t):Wt(Yt(e,t)):n?Gt(t):Wt(Gt(t))}var zt=b(),Jt={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},Kt=[].slice,Zt="?",Qt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function te(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ee(){return"undefined"==typeof document||null==document.location?"":document.location.href}Jt.wrap=function(t){return function(){try{return t.apply(this,arguments)}catch(t){throw Jt.report(t),t}}},Jt.report=function(){var t,e,n,r,o=[],a=null,s=null;function u(t,e,n){var r=null;if(!e||Jt.collectWindowErrors){for(var i in o)if(te(o,i))try{o[i](t,e,n)}catch(t){r=t}if(r)throw r}}function c(e,n,r,o,a){var c=null;if(a=f(a)?a.error:a,e=f(e)?e.message:e,s)Jt.computeStackTrace.augmentStackTraceWithInitialElement(s,n,r,e),h();else if(a&&p(a))(c=Jt.computeStackTrace(a)).mechanism="onerror",u(c,!0,a);else{var l,d={url:n,line:r,column:o},v=e;if("[object String]"==={}.toString.call(e)){var g=e.match(Qt);g&&(l=g[1],v=g[2])}d.func=Jt.computeStackTrace.guessFunctionName(d.url,d.line),d.context=Jt.computeStackTrace.gatherContext(d.url,d.line),u(c={name:l,message:v,mode:"onerror",mechanism:"onerror",stack:[i({},d,{url:d.url||ee()})]},!0,null)}return!!t&&t.apply(this,arguments)}function l(t){var e=t&&(t.detail?t.detail.reason:t.reason)||t,n=Jt.computeStackTrace(e);n.mechanism="onunhandledrejection",u(n,!0,e)}function h(){var t=s,e=a;s=null,a=null,u(t,!1,e)}function d(t){if(s){if(a===t)return;h()}var e=Jt.computeStackTrace(t);throw s=e,a=t,setTimeout(function(){a===t&&h()},e.incomplete?2e3:0),t}return d.subscribe=function(t){o.push(t)},d.unsubscribe=function(i){for(var a=o.length-1;a>=0;--a)o[a]===i&&o.splice(a,1);0===o.length&&(e&&(zt.onerror=t,e=!1),r&&(zt.onerror=n,r=!1))},d.installGlobalHandler=function(){!0!==e&&(t=zt.onerror,zt.onerror=c,e=!0)},d.installGlobalUnhandledRejectionHandler=function(){!0!==r&&(n=zt.onunhandledrejection,zt.onunhandledrejection=l,r=!0)},d}(),Jt.computeStackTrace=function(){var t=!1,e={};function n(t){if("string"!=typeof t)return[];if(!te(e,t)){var n="",r="";try{r=zt.document.domain}catch(t){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);o&&o[2]===r&&(n=function(t){if(!Jt.remoteFetching)return"";try{var e=function(){try{return new zt.XMLHttpRequest}catch(t){return new zt.ActiveXObject("Microsoft.XMLHTTP")}}();return e.open("GET",t,!1),e.send(""),e.responseText}catch(t){return""}}(t)),e[t]=n?n.split("\n"):[]}return e[t]}function r(t,e){var r,o=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",s=n(t);if(!s.length)return Zt;for(var u=0;u<10;++u)if(!d(a=s[e-u]+a)){if(r=i.exec(a))return r[1];if(r=o.exec(a))return r[1]}return Zt}function o(t,e){var r=n(t);if(!r.length)return null;var o=[],i=Math.floor(Jt.linesOfContext/2),a=i+Jt.linesOfContext%2,s=Math.max(0,e-i-1),u=Math.min(r.length,e+a-1);e-=1;for(var c=s;c0?o:null}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function a(t){return i(t).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function s(t,e){for(var r,o,i=0,a=e.length;ir&&(o=s.exec(a[r]))?o.index:null}function c(t){if(!d(zt&&zt.document)){for(var e,n,r,o,u=[ee()],c=zt.document.getElementsByTagName("script"),l=""+t,p=0;p|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),h=[],v=/^(.*) is undefined$/.exec(t.message),g=0,y=f.length;g eval")>-1&&(e=l.exec(n[3]))?n[3]=e[1]:0!==g||n[5]||d(t.columnNumber)||(h[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||Zt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=r(i.url,i.line)),Jt.remoteFetching&&i.url&&"blob:"===i.url.substr(0,5)){var b=new XMLHttpRequest;if(b.open("GET",i.url,!1),b.send(""),200===b.status){var E=b.responseText||"",x=(E=E.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(x){var _=x[1];"~"===_.charAt(0)&&(_=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+_.slice(1)),i.url=_.slice(0,-4)}}}i.context=i.line?o(i.url,i.line):null,h.push(i)}return h.length?(h[0]&&h[0].line&&!h[0].column&&v&&(h[0].column=u(v[1],h[0].url,h[0].line)),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function p(t,e,n,i){var a={url:e,line:n};if(a.url&&a.line){t.incomplete=!1,a.func||(a.func=r(a.url,a.line)),a.context||(a.context=o(a.url,a.line));var s=/ '([^']+)' /.exec(i);if(s&&(a.column=u(s[1],a.url,a.line)),t.stack.length>0&&t.stack[0].url===a.url){if(t.stack[0].line===a.line)return!1;if(!t.stack[0].line&&t.stack[0].func===a.func)return t.stack[0].line=a.line,t.stack[0].context=a.context,!1}return t.stack.unshift(a),t.partial=!0,!0}return t.incomplete=!0,!1}function f(t,e){for(var n,o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],l={},d=!1,v=f.caller;v&&!d;v=v.caller)if(v!==h&&v!==Jt.report){if(o={url:null,func:Zt,args:[],line:null,column:null},v.name?o.func=v.name:(n=a.exec(v.toString()))&&(o.func=n[1]),void 0===o.func)try{o.func=n.input.substring(0,n.input.indexOf("{"))}catch(t){}if(i=c(v)){o.url=i.url,o.line=i.line,o.func===Zt&&(o.func=r(o.url,o.line));var g=/ '([^']+)' /.exec(t.message||t.description);g&&(o.column=u(g[1],i.url,i.line))}l[""+v]?d=!0:l[""+v]=!0,s.push(o)}e&&s.splice(0,e);var y={mode:"callers",name:t.name,message:t.message,stack:s};return p(y,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),y}function h(e,i){var u=null;i=null==i?0:+i;try{if(u=function(t){var e=t.stacktrace;if(e){for(var n,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),u=[],c=0;c=0&&(g.line=y+b.substring(0,E).split("\n").length)}}}else if(i=l.exec(e[v])){var x=ee().replace(/#.*$/,""),_=s(new RegExp(a(e[v+1])),[x]);g={url:x,func:"",args:[],line:_?_.line:i[1],column:null}}if(g){g.func||(g.func=r(g.url,g.line));var S=o(g.url,g.line),w=S?S[Math.floor(S.length/2)]:null;S&&w.replace(/^\s*/,"")===e[v+1].replace(/^\s*/,"")?g.context=S:g.context=[e[v+1]],p.push(g)}}return p.length?{mode:"multiline",name:t.name,message:e[0],stack:p}:null}(e))return u}catch(e){if(t)throw e}try{if(u=f(e,i+1))return u}catch(e){if(t)throw e}return{name:e.name,message:e.message,mode:"failed"}}return h.augmentStackTraceWithInitialElement=p,h.computeStackTraceFromStackProp=l,h.guessFunctionName=r,h.gatherContext=o,h.ofCaller=function(t){t=1+(null==t?0:+t);try{throw new Error}catch(e){return h(e,t+1)}},h.getSource=n,h}(),Jt.extendToAsynchronousCallbacks=function(){var t=function(t){var e=zt[t];zt[t]=function(){var t=Kt.call(arguments),n=t[0];return"function"==typeof n&&(t[0]=Jt.wrap(n)),e.apply?e.apply(this,t):e(t[0],t[1])}};t("setTimeout"),t("setInterval")},Jt.remoteFetching=!1,Jt.collectWindowErrors=!0,Jt.linesOfContext=11;var ne=Jt.report.subscribe,re=Jt.report.installGlobalHandler,oe=Jt.report.installGlobalUnhandledRejectionHandler,ie=Jt.computeStackTrace,ae=50;function se(t){var e={stacktrace:{frames:le(t.stack)},type:t.name,value:t.message};return void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function ue(t,e){var n=Object.keys(t).sort(),r={extra:{__serialized__:function t(e,n,r){void 0===n&&(n=j),void 0===r&&(r=T);var o=C(e,n);return R(k(o))>r?t(e,n-1):o}(t)},fingerprint:[Xt(n.join(""))],message:"Non-Error exception captured with keys: "+function(t,e){if(void 0===e&&(e=I),!t.length)return"[object has no keys]";if(t[0].length>=e)return t[0];for(var n=t.length;n>0;n--){var r=t.slice(0,n).join(", ");if(!(r.length>e))return n===t.length?r:r+"…"}return""}(n)};if(e){var o=le(ie(e).stack);r.stacktrace={frames:o}}return r}function ce(t){return{exception:{values:[se(t)]}}}function le(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return(ot(n,"captureMessage")||ot(n,"captureException"))&&(e=e.slice(1)),ot(r,"sentryWrapped")&&(e=e.slice(0,-1)),e.map(function(t){return{colno:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:t.line}}).slice(0,ae).reverse()}var pe,fe,he=function(){function t(t){this.options=t,this.url=new et(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return t.prototype.captureEvent=function(t){return a(this,void 0,void 0,function(){return s(this,function(t){throw new Z("Transport Class has to implement `captureEvent` method")})})},t}(),de=b(),ve=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.captureEvent=function(e){return a(this,void 0,void 0,function(){var n,r;return s(this,function(o){switch(o.label){case 0:return n={body:k(e),method:"POST",referrerPolicy:function(){if(!Dt())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}}()?"origin":""},[4,de.fetch(this.url,n)];case 1:return r=o.sent(),[2,{status:t.Status.fromHttpCode(r.status)}]}})})},r}(he),ge=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.captureEvent=function(e){return a(this,void 0,void 0,function(){var n=this;return s(this,function(r){return[2,new Promise(function(r,o){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&(200===i.status&&r({status:t.Status.fromHttpCode(i.status)}),o(i))},i.open("POST",n.url),i.send(k(e))})]})})},r}(he),ye=b(),me=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.captureEvent=function(e){return a(this,void 0,void 0,function(){var n;return s(this,function(r){return n=k(e),[2,{status:ye.navigator.sendBeacon(this.url,n)?t.Status.Success:t.Status.Failed}]})})},r}(he),be=Object.freeze({BaseTransport:he,FetchTransport:ve,XHRTransport:ge,BeaconTransport:me}),Ee=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.install=function(){if(!this.options.dsn)throw new Z("Invariant exception: install() must not be called when disabled");return Error.stackTraceLimit=50,!0},r.prototype.eventFromException=function(t,e){return a(this,void 0,void 0,function(){var n,r,o,a;return s(this,function(s){switch(s.label){case 0:return f(t)&&t.error?(t=(a=t).error,n=ce(ie(t)),[3,7]):[3,1];case 1:return h(t)||(u=t,"[object DOMException]"===Object.prototype.toString.call(u))?(r=(a=t).name||(h(a)?"DOMError":"DOMException"),o=a.message?r+": "+a.message:r,[4,this.eventFromMessage(o,void 0,e)]):[3,3];case 2:return n=s.sent(),[3,7];case 3:return p(t)?(n=ce(ie(t)),[3,7]):[3,4];case 4:return y(t)&&e&&e.syntheticException?(n=ue(a=t,e.syntheticException),[3,7]):[3,5];case 5:return a=t,[4,this.eventFromMessage(a,void 0,e)];case 6:n=s.sent(),s.label=7;case 7:return[2,n=i({},n,{event_id:e&&e.event_id,exception:i({},n.exception,{mechanism:{handled:!0,type:"generic"}})})]}var u})})},r.prototype.eventFromMessage=function(e,n,r){return void 0===n&&(n=t.Severity.Info),a(this,void 0,void 0,function(){var t,o,i;return s(this,function(a){return t={event_id:r&&r.event_id,level:n,message:e},this.options.attachStacktrace&&r&&r.syntheticException&&(o=ie(r.syntheticException),i=le(o.stack),t.stacktrace={frames:i}),[2,t]})})},r.prototype.sendEvent=function(e){return a(this,void 0,void 0,function(){var n;return s(this,function(r){return this.options.dsn?(this.transport||(n=this.options.transportOptions?this.options.transportOptions:{dsn:this.options.dsn},this.options.transport?this.transport=new this.options.transport({dsn:this.options.dsn}):Nt()?this.transport=new me(n):Dt()?this.transport=new ve(n):this.transport=new ge(n)),[2,this.transport.captureEvent(e)]):(H.warn("Event has been skipped because no Dsn is configured."),[2,{status:t.Status.Skipped,reason:"Event has been skipped because no Dsn is configured."}])})})},r}(pt),xe="sentry.javascript.browser",_e=function(t){function e(e){return t.call(this,Ee,e)||this}return n(e,t),e.prototype.prepareEvent=function(e,n,r){return a(this,void 0,void 0,function(){return s(this,function(o){return e.platform=e.platform||"javascript",e.sdk=i({},e.sdk,{name:xe,packages:l(e.sdk&&e.sdk.packages||[],[{name:"npm:@sentry/browser",version:"4.4.2"}]),version:"4.4.2"}),[2,t.prototype.prepareEvent.call(this,e,n,r)]})})},e.prototype.showReportDialog=function(t){void 0===t&&(t={});var e=b().document;if(e){var n=t.dsn||this.getDsn();if(!t.eventId)throw new Z("Missing `eventId` option in showReportDialog call");if(!n)throw new Z("Missing `Dsn` option in showReportDialog call");var r=e.createElement("script");r.async=!0,r.src=new et(n).getReportDialogEndpoint(t),(e.head||e.body).appendChild(r)}},e}(ct),Se=1e3,we=0;function ke(t,e,n){if(void 0===e&&(e={}),!v(t))return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var sentryWrapped=function(){var r=this;n&&v(n)&&n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);try{var u=o.map(function(t){return ke(t,e)});return t.handleEvent?t.handleEvent.apply(this,u):t.apply(this,u)}catch(t){throw we+=1,setTimeout(function(){we-=1}),K(function(n){return a(r,void 0,void 0,function(){var r=this;return s(this,function(u){return n.addEventProcessor(function(t){return a(r,void 0,void 0,function(){var n;return s(this,function(r){return n=i({},t),e.mechanism&&(n.exception=n.exception||{},n.exception.mechanism=e.mechanism),n.extra=i({},n.extra,{arguments:C(o,2)}),[2,n]})})}),captureException(t),[2]})})}),t}};try{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(sentryWrapped[r]=t[r])}catch(t){}return sentryWrapped.prototype=t.prototype,t.__sentry_wrapped__=sentryWrapped,sentryWrapped.__sentry__=!0,sentryWrapped.__sentry_original__=t,sentryWrapped}function Oe(t){return function(e){if(pe=void 0,fe!==e){var n;fe=e;try{n=function(t){for(var e,n=t,r=[],o=0,i=0,a=" > ".length;n&&o++<5&&!("html"===(e=x(n))||o>1&&i+r.length*a+e.length>=80);)r.push(e),i+=e.length,n=n.parentNode;return r.reverse().join(" > ")}(e.target)}catch(t){n=""}G().addBreadcrumb({category:"ui."+t,message:n},{event:e,name:t})}}}function je(){return function(t){var e;try{e=t.target}catch(t){return}var n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(pe||Oe("input")(t),clearTimeout(pe),pe=setTimeout(function(){pe=void 0},Se))}}var Te,Ie=function(){function t(e){this.name=t.id,this.options=i({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){ne(function(e,n,r){if(!(we>0)){var o=G().getIntegration(t);o&&G().captureEvent(o.eventFromGlobalHandler(e),{originalException:r,data:{stack:e}})}}),this.options.onerror&&(H.log("Global Handler attached: onerror"),re()),this.options.onunhandledrejection&&(H.log("Global Handler attached: onunhandledrejection"),oe())},t.prototype.eventFromGlobalHandler=function(t){var e=ce(t);return i({},e,{exception:i({},e.exception,{mechanism:{data:{mode:t.mode},handled:!1,type:t.mechanism}})})},t.id="GlobalHandlers",t}(),Re=function(){function t(){this.ignoreOnError=0,this.name=t.id}return t.prototype.wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n"},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype.wrapRAF=function(t){return function(e){return t(ke(e,{mechanism:{data:{function:"requestAnimationFrame",handler:t&&t.name||""},handled:!0,type:"instrument"}}))}},t.prototype.wrapEventTarget=function(t){var e=b(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(O(n,"addEventListener",function(e){return function(n,r,o){try{r.handleEvent=ke(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:r&&r.name||"",target:t},handled:!0,type:"instrument"}})}catch(t){}var i,a,s;return"EventTarget"!==t&&"Node"!==t||(a=Oe("click"),s=je(),i=function(t){if(t){var e;try{e=t.type}catch(t){return}return"click"===e?a(t):"keypress"===e?s(t):void 0}}),e.call(this,n,ke(r,{mechanism:{data:{function:"addEventListener",handler:r&&r.name||"",target:t},handled:!0,type:"instrument"}},i),o)}}),O(n,"removeEventListener",function(t){return function(e,n,r){var o=n;try{o=o&&(o.__sentry_wrapped__||o)}catch(t){}return t.call(this,e,o,r)}}))},t.prototype.setupOnce=function(){this.ignoreOnError=this.ignoreOnError;var t=b();O(t,"setTimeout",this.wrapTimeFunction.bind(this)),O(t,"setInterval",this.wrapTimeFunction.bind(this)),O(t,"requestAnimationFrame",this.wrapRAF.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.wrapEventTarget.bind(this))},t.id="TryCatch",t}(),Fe=b(),Ce=function(){function e(t){this.name=e.id,this.options=i({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.instrumentBeacon=function(){Nt()&&O(Fe.navigator,"sendBeacon",function(n){return function(){for(var r=[],o=0;o2?e[2]:void 0;return r&&a(Te,String(r)),t.apply(this,e)}}},e.prototype.instrumentXHR=function(){if("XMLHttpRequest"in Fe){var t=XMLHttpRequest.prototype;O(t,"open",function(t){return function(){for(var e=[],n=0;n"},handled:!0,type:"instrument"}})})}(t,o)}),"onreadystatechange"in o&&v(o.onreadystatechange)?O(o,"onreadystatechange",function(t){return ke(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||""},handled:!0,type:"instrument"}},i)}):o.onreadystatechange=i,t.apply(this,n)}})}},e.addBreadcrumb=function(t,n){G().getIntegration(e)&&G().addBreadcrumb(t,n)},e.prototype.setupOnce=function(){this.options.console&&this.instrumentConsole(),this.options.dom&&this.instrumentDOM(),this.options.xhr&&this.instrumentXHR(),this.options.fetch&&this.instrumentFetch(),this.options.beacon&&this.instrumentBeacon(),this.options.history&&this.instrumentHistory()},e.id="Breadcrumbs",e}();function De(e){try{var n=(r=e,JSON.parse(r));Ce.addBreadcrumb({category:"sentry",event_id:n.event_id,level:n.level||t.Severity.fromString("error"),message:S(n)},{event:n})}catch(t){H.error("Error while adding sentry type breadcrumb")}var r}var Ne,Me="cause",Ue=5,Le=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this.key=e.key||Me,this.limit=e.limit||Ue}return t.prototype.setupOnce=function(){var e=this;B(function(n,r){return a(e,void 0,void 0,function(){var e;return s(this,function(o){return(e=G().getIntegration(t))?[2,e.handler(n,r)]:[2,n]})})})},t.prototype.handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;var n=this.walkErrorTree(e.originalException,this.key);return t.exception.values=l(n,t.exception.values),t},t.prototype.walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(t[e]instanceof Error)||n.length+1>=this.limit)return n;var r=se(ie(t[e]));return this.walkErrorTree(t[e],e,l([r],n))},t.id="LinkedErrors",t}(),Ae=b(),Be=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e=this;B(function(n){return a(e,void 0,void 0,function(){var e;return s(this,function(r){return G().getIntegration(t)&&Ae.navigator&&Ae.location?((e=n.request||{}).url=e.url||Ae.location.href,e.headers=e.headers||{},e.headers["User-Agent"]=Ae.navigator.userAgent,[2,i({},n,{request:e})]):[2,n]})})})},t.id="UserAgent",t}(),Pe=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this.Ember=e.Ember||b().Ember}return t.prototype.setupOnce=function(){var e=this;if(this.Ember){var n=this.Ember.onerror;this.Ember.onerror=function(r){if(G().getIntegration(t)&&K(function(t){e.addIntegrationToSdkInfo(t),captureException(r)}),"function"==typeof n)n.call(e.Ember,r);else if(e.Ember.testing)throw r},this.Ember.RSVP.on("error",function(n){G().getIntegration(t)&&K(function(t){n instanceof Error?(t.setExtra("context","Unhandled Promise error detected"),e.addIntegrationToSdkInfo(t),captureException(n)):(t.setExtra("reason",n),e.addIntegrationToSdkInfo(t),captureMessage("Unhandled Promise error detected"))})})}},t.prototype.addIntegrationToSdkInfo=function(t){var e=this;t.addEventProcessor(function(t){return a(e,void 0,void 0,function(){var e;return s(this,function(n){return t.sdk&&(e=t.sdk.integrations||[],t.sdk=i({},t.sdk,{integrations:l(e,["ember"])})),[2,t]})})})},t.id="Ember",t}(),He=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this.Vue=e.Vue||b().Vue}return t.prototype.formatComponentName=function(t){if(t.$root===t)return"root instance";var e=t._isVue?t.$options.name||t.$options._componentTag:t.name;return(e?"component <"+e+">":"anonymous component")+(t._isVue&&t.$options.__file?" at "+t.$options.__file:"")},t.prototype.setupOnce=function(){var e=this;if(this.Vue&&this.Vue.config){var n=this.Vue.config.errorHandler;this.Vue.config.errorHandler=function(r,o,u){var c={};y(o)&&(c.componentName=e.formatComponentName(o),c.propsData=o.$options.propsData),d(u)||(c.lifecycleHook=u),G().getIntegration(t)&&K(function(t){Object.keys(c).forEach(function(e){t.setExtra(e,c[e])}),t.addEventProcessor(function(t){return a(e,void 0,void 0,function(){var e;return s(this,function(n){return t.sdk&&(e=t.sdk.integrations||[],t.sdk=i({},t.sdk,{integrations:l(e,["vue"])})),[2,t]})})}),captureException(r)}),"function"==typeof n&&n.call(e.Vue,r,o,u)}}},t.id="Vue",t}();!function(t){t.Crash="crash",t.Deprecation="deprecation",t.Intervention="intervention"}(Ne||(Ne={}));var $e=function(){function t(e){void 0===e&&(e={types:[Ne.Crash,Ne.Deprecation,Ne.Intervention]}),this.options=e,this.name=t.id}return t.prototype.setupOnce=function(){"ReportingObserver"in b()&&new(b().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this.options.types}).observe()},t.prototype.handler=function(e){var n,r;if(G().getIntegration(t)){var o=function(t){K(function(e){e.setExtra("url",t.url);var n="ReportingObserver ["+t.type+"]",r="No details available";if(t.body){var o,i={};for(var a in t.body)i[a]=t.body[a];if(e.setExtra("body",i),t.type===Ne.Crash)r=[(o=t.body).crashId||"",o.reason||""].join(" ").trim()||r;else r=(o=t.body).message||r}captureMessage(n+": "+r)})};try{for(var i=u(e),a=i.next();!a.done;a=i.next()){o(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}},t.id="ReportingObserver",t}(),qe=Object.freeze({GlobalHandlers:Ie,TryCatch:Re,Breadcrumbs:Ce,LinkedErrors:Le,UserAgent:Be,Ember:Pe,Vue:He,ReportingObserver:$e}),We=[new ht,new yt,new dt,new kt,new Re,new Ce,new Ie,new Le,new Be];var Ve=i({},Ct,qe);return t.Integrations=Ve,t.Transports=be,t.addGlobalEventProcessor=B,t.addBreadcrumb=function(t){J("addBreadcrumb",t)},t.captureException=captureException,t.captureEvent=function(t){return J("captureEvent",t)},t.captureMessage=captureMessage,t.configureScope=function(t){J("configureScope",t)},t.withScope=K,t.getHubFromCarrier=X,t.getCurrentHub=G,t.Hub=q,t.Scope=L,t.BrowserBackend=Ee,t.BrowserClient=_e,t.defaultIntegrations=We,t.forceLoad=function(){},t.init=function(t){void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=We),function(t,e){if(!0===e.debug&&H.enable(),!G().getClient()){var n=new t(e);G().bindClient(n),n.install()}}(_e,t)},t.lastEventId=function(){return G().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=G().lastEventId()),G().getClient().showReportDialog(t)},t.SDK_NAME=xe,t.SDK_VERSION="4.4.2",t}({}); //# sourceMappingURL=bundle.min.js.map